package com.bby.disk.bean;

import com.bby.common.exception.BBYException;
import com.bby.disk.bean.req.UploadTaskInfo;
import com.bby.disk.manager.upload.UploadTask;
import lombok.Data;

@Data
public class UploadStatus extends UploadTaskInfo {
    private String userId;
    long finished;

    public UploadStatus() {
    }

    public UploadStatus(UploadTask task) throws BBYException {
        super(task);
        this.userId = task.getUserId();
        finished = task.lookupLoaded();
    }
}
